from base.base_page import BasePage


class TextRecognizePage(BasePage):
    # 全部识别/手写识别
    def btn_recognize(self):
        return self.by_id(self.HW_ENV + "txt_extension").click()

    # 自动分段
    def btn_paragraph(self):
        return self.by_uiautomator('new UiSelector().text("自动分段")').click()

    # 重识
    def btn_re_recognize(self):
        return self.by_uiautomator('new UiSelector().text("重识")').click()

    # Txt文件
    def btn_txt(self):
        return self.by_uiautomator('new UiSelector().text("Txt文件")').click()
